package graphics.transformations;

import static util.MatrixOperationsF.add;
import static util.MatrixOperationsF.cross_product;
import static util.MatrixOperationsF.negate;

public class RayIntersector implements TriangleLineIntersector {

	@Override
	public boolean intersects(float[][] triangle, float[] origin,
			float[] direction) {

		return norm(null).equals(null);// TODO:fix
	}

	private float[] norm(float[][] triangle) {
		return cross_product(add(triangle[1], negate(triangle[0])),
				add(triangle[2], negate(triangle[0])));
	}
}
